import { Boot } from "@wangeditor/editor";
import { MyButtonAttachment } from "./editorBtns";
import { renderAttachment } from "./element";
const attachments = {
    key: "attachment",
    factory() {
        return new MyButtonAttachment();
    },
};
const renderElemConf = {
    type: "attachment", // 新元素 type ，重要！！！
    renderElem: renderAttachment,
};
Boot.registerRenderElem(renderElemConf);
Boot.registerMenu(attachments);
